package ynny.dome03;

public class MyStringTest{
    public static void main(String[] args) {
        String c1 = new String("123456");
        String c2 = new String("678910");
        System.out.println("第一个字符串为："+c1);
        System.out.println("第二个字符串为："+c2);
        if (c1.equals(c2)){
            String a3 = c1.replaceAll(" ","");
            String a4 = a3.replaceAll("java","word");
            System.out.println("修改后的字符串为："+a4);
        }else {
            System.out.println("不相等");
        }

    }
}
